<?php include dirname(__FILE__).'/common/header.php'; ?>

<?php include dirname(__FILE__).'/common/menu.php'; ?>

var attr = {};
attr.ctrlName = '<?php echo $ctrlName; ?>';
/*
| -------------------------------------------------------------------
|  List Grid
| -------------------------------------------------------------------
*/
list.grid = new ZM.GridPanel({
    url: list.baseUrl + attr.ctrlName+'/getGameHistoryList',
    columns:[
        {header:'顾客ID',dataIndex:'customer_id',filter:{}},
        {header:'昵称',dataIndex:'nickname',filter:{}},
        {header:'成绩',dataIndex:'game_score',sort:true},
        {header:'游戏时间',dataIndex:'history_time_create',width:140,filter:{xtype:'daterangefield'}}
    ]
});
/*
| -------------------------------------------------------------------
|  List Grid Action
| -------------------------------------------------------------------
*/


<?php include dirname(__FILE__).'/common/layout.php'; ?>
list.grid.store.load();
<?php include dirname(__FILE__).'/common/footer.php'; ?>